<?php 
namespace app\admin\controller;

use think\Controller;

class Base extends Controller
{
	protected $admin_id;
	public function initialize()
	{
		session('admin_id',1);
		$this->admin_id = session('admin_id');
		if(!$this->admin_id){
			$this->redirect('Login/index');
		}
	}
}